import numpy as np

# 随机生成整数值,low为区间下限，high为区间上限
np.random.randint(low=0,high=5,size=None)